package org.kisekiproject.ui {
	import flash.display.Graphics;
	import flash.display.Sprite;
	import flash.filters.DropShadowFilter;

	/**
	 * Icon for indicating unsaved data.
	 */
	public class UnsavedIcon extends Sprite {

		/**
		 * Constructor.
		 */
		public function UnsavedIcon() {
			var g:Graphics=graphics;

			g.beginFill(0xffffff);
			g.moveTo(-10,0);
			g.lineTo(0,10);
			g.lineTo(10,0);
			g.lineTo(-10,0);

			g.drawRect(-5,-10,10,10);
			g.drawRect(-20,0,5,20);
			g.drawRect(-15,15,30,5);
			g.drawRect(15,0,5,20);
			g.endFill();

			g.beginFill(0,0);
			g.drawRect(-20,-20,40,40);
			g.endFill();

			var dropShodow:DropShadowFilter=new DropShadowFilter(0,0,0,.8,6,6,1);
			filters=[dropShodow];
		}
	}
}